﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Contact.aspx.cs" Inherits="HiTeachers.Web.Contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphSearch" runat="server">
    <hiteacher:Search ID="htcSearch" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMainMenu" runat="server">
    <hiteacher:MainMenu ID="mnuMain" ActivateId="Contact" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
    <h3 class="line">
        <span>Liên hệ</span></h3>
    <!-- My latest work -->
    <div class="galerie">
        <form id="frmRegister" runat="server">
        <div id="divForm">
            <asp:Label ID="lblMsg" CssClass="SuccMsg" Width="455px" runat="server"></asp:Label>
            <asp:ValidationSummary ID="validSum" DisplayMode="BulletList" ShowSummary="false"
                ValidationGroup="Contact" ShowMessageBox="true" HeaderText="Bạn hãy kiểm tra các thông tin không hợp lệ bên dưới:"
                runat="server" />
            <ul>
                <li>
                    <label for="txtName">
                        Họ tên: <b style="color: Red;">*</b></label>
                    <asp:TextBox ID="txtName" Width="300px" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvName" ControlToValidate="txtName" ErrorMessage="Hãy nhâp họ tên của bạn!"
                        ValidationGroup="Contact" Display="None" runat="server"></asp:RequiredFieldValidator>
                </li>
                <li class="guide"><small>(Sử dụng email đang hoạt động)</small></li>
                <li>
                    <label for="txtEmail">
                        Email: <b style="color: Red;">*</b>
                    </label>
                    <asp:TextBox ID="txtEmail" Width="300px" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvEmail" ControlToValidate="txtEmail" ValidationGroup="Contact"
                        ErrorMessage="Hãy nhập địa chỉ email của bạn!" Display="None" runat="server"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmail" ControlToValidate="txtEmail" ValidationGroup="Contact"
                        ErrorMessage="Dịa chỉ email của bạn không hợp lệ!" ValidationExpression="^(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)$"
                        Display="None" runat="server"></asp:RegularExpressionValidator>
                </li>
                <li>
                    <label for="txtContent">
                        Nội dung: <b style="color: Red;">*</b>
                    </label>
                    <br />
                    <asp:TextBox ID="txtContent" TextMode="MultiLine" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvContent" ControlToValidate="txtContent" ErrorMessage="Hãy nhâp nội dung!"
                        ValidationGroup="Contact" Display="None" runat="server"></asp:RequiredFieldValidator>
                </li>
                <li>
                    <asp:Label ID="lblMsgCapt" runat="server" Visible="false" ForeColor="Red" Text="Mã bảo vệ không đúng! Bạn hãy nhập lại."></asp:Label>
                    <capt:CaptchaControl ID="captCode" CaptchaBackgroundNoise="Medium" CaptchaLength="5"
                        CaptchaLineNoise="Medium" runat="server" />
                </li>
                <li>
                    <label>
                        Mã bảo vệ: <b style="color: Red;">*</b></label>
                    <asp:TextBox ID="txtCaptText" Width="100px" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCaptText" ControlToValidate="txtCaptText" ErrorMessage="Hãy nhâp mã bảo vệ!"
                        ValidationGroup="Contact" Display="None" runat="server"></asp:RequiredFieldValidator></li>
                <li>
                    <label style="width: 200px;">
                        Chú ý: (<b style="color: Red;">*</b>) Bắt buộc nhập&nbsp;
                    </label>
                    <asp:Button ID="btnSave" OnClick="BtnSaveClick" CssClass="btnClass" ValidationGroup="Contact"
                        Text="Gửi" runat="server" />&nbsp;&nbsp;
                    <asp:Button ID="btnCancel" OnClick="BtnCancelClick" CssClass="btnClass" Text="Hủy"
                        runat="server" />
                </li>
            </ul>
        </div>
        </form>
    </div>
</asp:Content>
